<template>
    <div>
         <cvue-dialog
        :dialogVisible='dialogVisible'
        title='编辑设备'
        :isShowFoot='true'
        dialogWidth='30%'
        @handleOpen='getDetail'
        @closeDialog='closeDialog'
        @confirmDialog='confirmDialog'
        @handleClose='closeDialog'>
            <div class="dialog-body" slot="dialogBody">
                <img class="stu-img" src="@/assets/logo.png" alt="">
                <el-form  label-width="80px">
                    <el-form-item label="登录名">
                        <el-input v-model="a"></el-input>
                    </el-form-item>
                    <el-form-item label="姓名">
                        <el-input v-model="a"></el-input>
                    </el-form-item>
                    <el-form-item label="设备编号">
                        <el-input v-model="a"></el-input>
                    </el-form-item>
                    <el-form-item label="电话号码">
                        <el-input v-model="a"></el-input>
                    </el-form-item>
                    <el-form-item label="设备类型">
                        <el-select v-model="a" >
                            <el-option label="区域一" value="shanghai"></el-option>
                            <el-option label="区域二" value="beijing"></el-option>
                        </el-select>
                    </el-form-item>
                </el-form>
            </div>
        </cvue-dialog>
    </div>
</template>
<script>
import cvueDialog from '@/components/cvue-dialog'
export default {
    components: {
        cvueDialog
    },
    props: {
        dialogVisible: {
            type: Boolean,
            default: false
        }
    },
    data () {
        return {
            a: ''
        }
    },
    methods: {
        getDetail () {

        },
        closeDialog () {
            this.$emit('close')
        },
        confirmDialog () {
            this.closeDialog()
        }
    }
}
</script>
<style scoped>
.stu-img{
    display: block; margin: 0 auto; object-fit: cover;width: 150px;height: 150px;
}
</style>
